<?php

return [
    //特殊菜单
    'index' => ['index/index'],    
    //一级menu,并且其下有分权限写到other
    //写法
    'one_test' => ['name' => 'one_test','url'=>'test/test','menu' =>'1'],
    
    'user' => [
            ['name' => 'menu_user_list', 'url' => 'user/list', 'menu' =>'1'],
            ['name' => 'menu_user_add', 'url' => 'user/add', 'menu' =>'1'],
            ['name' => 'menu_user_edit', 'url' => 'user/edit', 'menu' =>'0'],
            ['name' => 'menu_user_del', 'url' => 'user/del', 'menu' =>'0'],
        ],
    //三级menu写法,menu里才有parent
    //若三级菜单中有menu=1的，那一级菜单menu=0也没用
    'admin_manager' => [
            ['name' =>'menu_group', 'url' => 'group/list','parent' => '1', 'menu' =>'1'],
                ['name' => 'menu_group_add', 'url' => 'group/add', 'menu' =>'1'],
                ['name' => 'menu_group_edit', 'url' => 'group/edit', 'menu' =>'0'],
                ['name' => 'menu_group_del', 'url' => 'group/del', 'menu' =>'0'],
            ['name' => 'menu_group', 'url' => 'group/list','parent' => '2', 'menu' =>'1'],
            ['name' =>'menu_manager', 'url' => 'manager/list','parent' => '1', 'menu' =>'1'],
                ['name' => 'menu_manager_add', 'url' => 'manager/add', 'menu' =>'1'],
                ['name' => 'menu_manager_edit', 'url' => 'manager/edit', 'menu' =>'0'],
                ['name' => 'menu_manager_del', 'url' => 'manager/del', 'menu' =>'0'],
            ['name' =>'menu_manager', 'url' => 'manager/list','parent' => '2', 'menu' =>'1'],
            
        ],
    //可以用于只有一级菜单，但是其下有权限分配，menu必须为0
    'other_perm' => [
//写法            ['name' => 'perm_one_test', 'url' => 'test/test2', 'menu' =>'0'],
        ],
];
